package com.hd.controller;

import com.hd.controller.dto.CaseDto;
import com.hd.pojo.Case;
import com.hd.service.EnterResultService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * Created by 就诊查询 on 2017/11/27.
 */
@Controller
@RequestMapping("/director/enterResult")
public class EnterResultController {

    @Resource
    private EnterResultService enterResultService;


    @RequestMapping("/searchCase")
    public String searchCase(CaseDto dto, Model model){
        Case ca = enterResultService.searchCase(dto);
        model.addAttribute("ca",ca);
        return "director/enterResult";
    }

}
